package com.ruoyi.word.service.impl;

import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.domain.word.CommonWordCorrection;
import com.ruoyi.word.dao.mapper.CommonWordCorrectionMapper;
import com.ruoyi.word.service.ICommonWordCorrectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Liuzy
 * Date: 2021/7/19
 * Description:
 */
@Service
public class CommonWordCorrectionServiceImpl implements ICommonWordCorrectionService {

    @Autowired
    private CommonWordCorrectionMapper dao;

    @Override
    public List<CommonWordCorrection> findByWhereStr(String whereStr, String orderField, String order) {
        return dao.findByWhereStr(whereStr, orderField, order);
    }

    @Override
    public int dealBatch(Long id, LoginUser user) {
        return dao.dealBatch(id, user.getUserId(), user.getUsername());
    }

    @Override
    public int del(Long id) {
        return dao.del(id);
    }
}
